#include <nxos.h>
#include <assert.h>
#include "stdio_impl.h"

void __init_stdio(void)
{
    /* open stdio device */
    stdin->fd = 0;
    stdout->fd = 1;
    stderr->fd = 2;

    /* no buffer for stdin & stdout */
    setbuf(stdin, NULL);
    setbuf(stdout, NULL);
    setbuf(stderr, NULL);
}
